package com.focusai.efairy.ui.adapter.announce;

import android.content.Context;
import android.view.View;
import android.widget.RadioButton;

import com.focusai.efairy.R;
import com.focusai.efairy.model.project.ProjectItem;
import com.focusai.efairy.ui.adapter.base.BaseRecyclerAdapter;
import com.focusai.efairy.ui.adapter.base.BaseRecyclerViewHolder;

/**
 * Created by luo_guangwen on 2017/7/31.
 */

public class InputSelectProjectAdapter extends BaseRecyclerAdapter<ProjectItem> {

    public InputSelectProjectAdapter(Context context) {
        super(context);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_select_project;
    }

    @Override
    protected void onBindBaseRecyclerViewHolder(BaseRecyclerViewHolder holder, int position) {
        ProjectItem item = mList.get(position);
        holder.setText(R.id.text_project_name, item.efairyproject_name);
        ((RadioButton) holder.getView(R.id.rbn_selected)).setVisibility(View.GONE);
    }
}
